// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import 'babel-polyfill'
// import { Service } from './utils/http.js'
// Vue.prototype.Service = new Service();
import { Swipe, SwipeItem } from 'mint-ui';
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
import { Switch } from 'mint-ui';
Vue.component(Switch.name, Switch);

import { Progress } from 'mint-ui';
import 'mint-ui/lib/style.css'
import MINT from 'mint-ui'
Vue.use(MINT)
//import http from './utils/request';
//Vue.prototype.$http = http // 挂载到全局上
//Vue.prototype.API = '/api' // 挂载到全局上
//引入全局通用文件
//import global_ from './components/global/global.vue';
//GLOBAL挂载到全局通用Vue实例上面
//Vue.prototype.GLOBAL = global_;

Vue.component(Progress.name, Progress);
Vue.config.productionTip = false;
document.addEventListener('deviceready', function () {
  window.navigator.splashscreen.hide()
}, false)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
